package com.hkemmm.shop.dao;

import com.hkemmm.shop.entity.Addreas;
import com.hkemmm.shop.entity.AddressInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddreasMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Addreas record);

    int insertSelective(Addreas record);

    Addreas selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Addreas record);

    int updateByPrimaryKey(Addreas record);

    List<AddressInfo> getAddressInfo(Integer uid);

    AddressInfo getAddressInfoById(Integer id);

    int setDefault(Integer id);

    int setAllAddresDefault(Integer uid);

    Addreas getOneAddress(Integer uid);

    int addresNum(Integer uid);
}